package com.mes.cloud.api.dto.request.position;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

/**
 * 岗位表
 *
 * @author xy
 * @version 2019-08-03 08:39:11
 * @email yuan.xue3@pactera.com
 */
@Data
public class SysPositionRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID", required = false)
    private String id;

    @ApiModelProperty(value = "岗位编码", required = false)
    private String code;

    @ApiModelProperty(value = "岗位名称", required = true)
    @NotNull(message = "name不能为空")
    private String name;

    @ApiModelProperty(value = "岗位类型", required = true)
    @NotNull(message = "type不能为空")
    private String type;

    @ApiModelProperty(value = "岗位标识", required = false)
    private String flag;

    @ApiModelProperty(value = "是否组织负责人(0.是 1.否)", required = true)
    @NotNull(message = "organizationLeader不能为空")
    private String organizationLeader;

    @ApiModelProperty(value = "上级岗位", required = false)
    private String parentId;

    @ApiModelProperty(value = "所属组织", required = false)
    private String organizationId;

    @ApiModelProperty(value = "岗位备注", required = false)
    private String remark;

    @ApiModelProperty(value = "岗位主员工(保留字段)", required = false)
    private String employeeId;

    @ApiModelProperty(value = "状态(0：禁用，1：启用)", required = false)
    private String enableFlag;

    @ApiModelProperty(value = "创建人", required = false)
    private String createBy;

    @ApiModelProperty(value = "创建时间", required = false)
    private Date createTime;

    @ApiModelProperty(value = "修改人", required = false)
    private String updateBy;

    @ApiModelProperty(value = "修改时间", required = false)
    private Date updateTime;

    @ApiModelProperty(value = "删除标记，1：删除，0：未删除", required = false)
    private String delFlag;

    @ApiModelProperty(value = "更新日期", required = false)
    private String updateDateStr;

    @ApiModelProperty(value = "版本", required = false)
    private Integer version;


}
